package VWorldGameStudio.events;

import VWorldGameStudio.FCBattleEventOrder;
import VWorldGameStudio.FCEvent;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;

public class BattleEvent extends FCEvent implements Serializable {

    //battle类型
    @Getter
    @Setter
    private ArrayList<String> monsterId = new ArrayList<>(0);//怪物id们
    @Getter
    @Setter
    private ArrayList<FCBattleEventOrder> eventOrders = new ArrayList<>(0);
    //battle类型
    @Getter
    @Setter
    private String containSayTextId;

    public ArrayList<FCBattleEventOrder> getEventOrderByRound(int round){
        ArrayList<FCBattleEventOrder> ret = new ArrayList<>(0);
        for(FCBattleEventOrder eventOrder: eventOrders){
            if(eventOrder.whtichRound == round){
                ret.add(eventOrder);
            }
        }
        return ret;
    }
    public BattleEvent(String type, String name) {
        super(type, name);
    }

}
